#coding=utf-8
import time
import threading


"""
单线程

if __name__ == '__main__':
    for i in range(5):
        say()
"""

"""
多线程
"""

def say():
    print("我饿了。。。")
    time.sleep(1)


if __name__ == '__main__':
    for i in range(5):
        t = threading.Thread(target=say)
        t.start()# 启动线程



